<?php
class ReportController extends  IndexController 
{
	public function init()
    {
		parent::init();
        $this->utl            = Yaf_Registry::get("utl");
        $this->ReportModel = new ReportModel();
    }

    public function listAction()
    {
    	date_default_timezone_set('PRC');
        $arr = array();
    	$nowDate = time();
    	for($i = 0; $i<7; $i++){
    		$getTime = $nowDate-3600*24*$i;
			$arr[$i] = date("Y-m-d ",$getTime);
    	}
    	//var_dump($arr);
    	$pushArticle_info = $this->ReportModel->selectPushInfoByTime($arr);
        //parent::report();
        //$pushArticle_info=$this->Session->pushArticle_info;

     	$this->getView()->assign("pushArticle_info",$pushArticle_info);
    	//var_dump($pushArticle_info);
    }
}
?>